﻿namespace PrismEx.Fixtures.Extensions
{
    using System;

    using NUnit.Framework;

    using PrismEx.Extensions;

    using Stump;

    [TestFixture]
    public class NavigationUriBuilderFixture : TestFixtureBase<NavigationUriBuilder>
    {
        public override void Given()
        {
            this.TestDomain = new TestDomain<NavigationUriBuilder>(NavigationUriBuilder.ForType<string>());
        }

        public override void When()
        {
            this.TestDomain.Subject
                .WithParameter("Parameter1", "Value1")
                .WithParameter("Parameter2", "Value2");
        }

        [Then(Description = "")]
        public void ShouldResolveToCorrectUri()
        {
            Uri uri = this.TestDomain.Subject;

            Assert.That(uri.OriginalString, Is.EqualTo("System.String?Parameter1=Value1&Parameter2=Value2"));
        }
    }
}